package com.cyy.cn.pojo;


import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;
/**
 * 文章实体类
 * @author Administrator
 *
 */

@Document(indexName = "article",type="test")
public class Article implements Serializable{

	@Id
	private String id;//ID

	@Field(index=true, analyzer = "ik_max_word",searchAnalyzer = "ik_max_word") //标题
	private String title;

	@Field(index=true, analyzer = "ik_max_word",searchAnalyzer = "ik_max_word") //内容
	private String content;

	private String state;//审核状态

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
}
